<!--<div class="pageHeader">
	<div class="searchBar">
		{foreach item=item key=key from=$list.provice}
			<label style="width:100px;">
				<input type="radio" name="r1" class="find" value="{$item}"/>{$item}
			</label>
		{/foreach}
	</div>
</div>-->

<div class="pageContent">
	
	<form method="post" action="/index.php?act=protype&st=big_class_add" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		<div class="pageFormContent" layoutH="58">
			{foreach item=item key=key from=$list.provice}
				<label style="width:100px;">
					<input type="radio" name="r1" class="find" value="{$item}"/>{$item}
				</label>
			{/foreach}
		<div class="divider"></div>
			<center><table border="1" width="700px" style="">		
				<tbody>
					{foreach item=items from=$list.list key=key}
						<tr width="100%" align="left">
							<td rowspan="<?php echo count($this->_var['items']) + 1; ?>">
								<label id="{$key}">
									<input type="checkbox" group="{$key}" class="checkboxCtrl"/>{$key}
								</label>
							</td>
						</tr>
						{foreach item=children from=$items key=ke}
							<tr width="100%" style="padding:0 0 0 0;margin:0 0 0 0;" align="left">
								<td>
									<label>
										<input type="checkbox" name="{$key}" groups="{$ke}" class="checkboxCtrl"/>{$ke}
									</label>
								</td>
								<td>
								{foreach item=child from=$children key=k}
									<label>
										<input type="checkbox" tag="{$ke}" tags="{$key}" name="area" value="{name:'{$child.name}',id:'{$child.id}'}" {if in_array($child.name, $select)}checked{/if}/>{$k}
									</label>
								{/foreach}
								</td>
							</tr>
						{/foreach}
					{/foreach}
				</tbody>
			</table></center>
		</div>
		
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="button" multLookup="area" warn="请选择地区">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>

	</form>

</div>
<script type="text/javascript">
$(function(){
	$(".find").bind("click",function(){
		var value = $(this).val();
		var obj = document.getElementById(value);
		if(obj != null){
			obj.scrollIntoView();
		}
	});
});
</script>